package com.springboot_shopping.entity;

import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableField;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableName;
import lombok.AllArgsConstructor;
import lombok.Data;
import lombok.NoArgsConstructor;

import java.sql.Timestamp;

@Data
@AllArgsConstructor
@NoArgsConstructor
@TableName("t_picture")
public class Picture {
    @TableId(value = "id", type = IdType.AUTO)
    private Long id;
    @TableField("create_time")
    private Timestamp createTime;
    @TableField("update_time")
    private Timestamp updateTime;
    @TableField("memo")    //图片描述
    private String memo;
    @TableField("title")
    private String title;
    @TableField("url")
    private String url;
    @TableField("update_admin_id")
    private Long updateAdminId;
}